fix up test_encoding_utf8 environment for docker.
authortsteven4 <tsteven4@gmail.com>
Sat, 28 Apr 2018 16:28:53 +0000 (10:28 -0600)
committertsteven4 <tsteven4@gmail.com>
Sat, 28 Apr 2018 16:28:53 +0000 (10:28 -0600)
docker_hook

index 4ccaa4a1e5a4dd2a09632b8fe62081d9e59c2270..22ec02a8c30a7c1d5b70db5fdd61153d91bc6060 100755 (executable)
@@ -3,6 +3,11 @@
 # setup up and run a docker build.
 # this is used by travis.
 #
-cnt=$(docker create  -v `pwd`:/app -e CC=$CC -e CXX=$CXX tsteven4/gpsbabel_build_environment bash -c "./build_and_test")
+# create the container to run the build and regression.
+# pass the compiler from the travis matrix through CC, CXX.
+# we need the default charmap to be UTF-8 for test_encoding_utf8, explicit set it here through LC_ALL.
+cnt=$(docker create  -v `pwd`:/app -e CC=$CC -e CXX=$CXX -e LC_ALL=C.UTF-8 tsteven4/gpsbabel_build_environment bash -c "./build_and_test")
+# copy the pwd to the container.  travis has got the code user test in the pwd.
 docker cp . $cnt:/app
+# run the container to execute the build and the regression.
 docker start -a $cnt